@import "./var.less";
@import "element-plus/theme-chalk/dark/css-vars.css";

.boder-radius {
  border-radius: 8px !important;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
}

.f-s12 {
  font-size: 12px;
}

.f-s14 {
  font-size: 14px;
}

.f-s15 {
  font-size: 15px;
}

.f-s16 {
  font-size: 16px;
}

.f-s18 {
  font-size: 18px;
}

.f-s25 {
  font-size: 25px;
}

.f-s28 {
  font-size: 28px !important;
}

.f-s30 {
  font-size: 30px;
}
.overflow-y{
  overflow-y: auto !important;
   -ms-overflow-style: none;
    scrollbar-width: none;


}
.cursor-pointer {
  cursor: pointer;
}

.el-pagination {
  display: flex;
  justify-content: flex-end;
}

.toolPadding {
  padding-right: 16px !important;
}

// 表格
.tableManage {
  display: flex;
  flex-direction: column;

  .el-card {
    border-radius: 8px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .table-wrap {
    flex: 1;
    margin-top: 5px;
  }
}
// .search-form  .el-form-item--default,
.search-form .el-form-item__label {
      display: none !important;
    }
.search-form {
  .el-card__body {
    .el-form-item {
      margin-bottom: 0px !important;
    }

    .el-form-item--default .el-form-item__label {
      display: none !important;
    }
  }
}
.el-button--small {
padding: 17px 20px !important;
// display: flex;
// justify-content: flex-end;
}
// .opBtn.el-button--small {
// padding: 15px 20px !important;
// }
// 分页
.el-pagination__rightwrapper {
  flex: 0 !important;
}

.dashboard-paading {
  padding: 30px 20px;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 登录页样式
// logo样式
.logon-form .logoImg {
  width: 100%;
  height: 52px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;

  img {
    width: 310px;
  }
}

.logon-form {
  // padding: 60px 55px 133px 55px !important;
  padding: 50px 55px !important;
}

// 取消el-col样式
.logon-form .el-col,
.logon-form .el-col-24 {
  padding: 0 !important;
}

// 输入框外下边距
.logon-form .el-form-item--large {
  margin-bottom: 16px !important;
}

// 输入框高度
.logon-form .el-input {
  height: 46px !important;
}

// 输入框圆角
.logon-form .el-input--large .el-input__wrapper {
  border-radius: var(--boder-radius);
  // box-shadow: none !important;
}

// 记住账号
.logon-form .remeber {
  padding-bottom: 21px;
}

// 登录按钮
.logon-form .loginBtn {
  height: 46px !important;

  button {
    height: 100%;
    border-radius: var(--boder-radius);
    font-size: 16px;
  }
}

.logon-form .el-icon {
  font-size: 16px !important;
}



// 登录页样式

// 上传文件样式
.ma-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

// 上传图标容器的样式
.avatar-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed var(--el-border-color);
  color: var(--el-border-color);
  border-radius: 6px;
  transition: var(--el-transition-duration-fast);

  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;

  // 悬停状态
  &:hover {
    border-color: var(--el-color-primary);
    color: var(--el-color-primary);
  }
}

// 上传列表样式
.upload-list {
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  position: relative;
  border: 1px dashed var(--el-border-color);
  border-radius: 6px;
  transition: var(--el-transition-duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  &:hover {
    .upload-img-mask {
      opacity: 1;
    }
  }

  .upload-img {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upload-img-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--el-overlay-color-lighter);
    transition: opacity var(--el-transition-duration);
    opacity: 0;

    .el-icon {
      color: #fff;
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  // 悬停状态
  &:hover {
    border-color: var(--el-color-primary);
    color: var(--el-color-primary);
  }
}

.el-message-box__btns {
  // justify-content: center !important;
}

.el-dialog__header {
  font-size: 18px !important;
}

.el-select__input-wrapper input {
  cursor: pointer !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.color-theme {
  color: var(--el-color-primary);
}

.flex{
  &.items-center{
    align-items: center;
  }
  &.justify-center{
    justify-content: center;
  }
  &.space-between{
    justify-content: space-between;
  }
}

.input-full{
  width: 100%;
}
.tips-item {
  // padding: 12px;
 line-height: 30px;
  }
